<template>
  <!-- 大学推荐列表 -->
  <div class="tabdetial">
    <Nav></Nav>
    <div class="banner-wrap">
      <img class="banner" :src="tabdetailBg" />
      <!-- <div class="btn">点击查看</div> -->
    </div>
    <div class="wrap">
      <div class="tabs">
        <div class="tabs-title">三位一体<span></span>大学推荐</div>
        <div class="tabs-subTitle">
          Gaobangbabg, paint a picture of life and draw a blueprint for the
          future.
        </div>
      </div>

    <div class="tab">
        <span class="line"></span>
        <span>省属三位一体</span>
        <span>大学推荐</span>
        <span class="more" @click="goToMore"> <img src="../../assets/pc/homepage-more.png" /></span>
      </div>

     <div class="introduce-wrap">
        <div
          class="introduce-wrap-item"
          @click="gotoSchool(item.id)"
        >
          <introduceProjectSchool
            :index="index"
            typeBg="1"
            :introduce="info.province_schools"
            :readMore="false"
          ></introduceProjectSchool>
        </div>
      </div>

        <div class="tab">
        <span class="line"></span>
        <span>高水平三位一体</span>
        <span>大学推荐</span>
          <span class="more" @click="goToMore"> <img src="../../assets/pc/homepage-more.png" /></span>
      </div>

     <div class="introduce-wrap">
        <div
          class="introduce-wrap-item"
          @click="gotoSchool(item.id)"
        >
          <introduceProjectSchool
            :index="index"
            :introduce="info.high_schools"
            :readMore="false"
            typeBg="2"
          ></introduceProjectSchool>
        </div>
      </div>

      

    </div>

   
    <Footer></Footer>
  </div>
</template>

<script setup>
import Footer from '../../components/pc/Footer.vue';
import Nav from '../../components/pc/nav.vue';
import schoolProject from '../../components/pc/schoolProject.vue';
import introduceProjectSchool from '../../components/pc/introduceProjectSchool.vue';

import consultationProject from '../../components/pc/consultationProject.vue';
import { onMounted, ref } from 'vue';
import { getSchoolsPc } from '../../api/apiList/pcApi.js';
import tabdetailBg from '../../assets/pc/school-recomment.png';
import homepageTab2 from '../../assets/pc/homepage-tab2.png';
import homepageTab3 from '../../assets/pc/homepage-tab3.png';
import homepageTab4 from '../../assets/pc/homepage-tab4.png';
import homepageTab5 from '../../assets/pc/homepage-tab5.png';
let info = ref({});
let currentIndex = ref(-1);
import { useRouter } from 'vue-router';
const router = useRouter();

onMounted(async () => {
  console.log(11);
  // 获取列表数据
  await getSchoolsPc().then((res) => {
    const { result } = res;
    info.value = result;
  });
});

const goToMore = () => {
  router.push({ path: '/schoolRecommendPc' });
};
</script>

<style lang="less" scoped>
.tabdetial {
    .tab {
    font-size: 23Px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #000;
    line-height: 40Px;
    margin-bottom: 40Px;
    display: flex;
    align-items: center;
    margin-top: 40Px;
    position: relative;
    .more {
        cursor: pointer;
        position: absolute;
        right: 0;
        font-weight: bold;
        color: #034171;
        font-size: 18Px;
        text-align: right;
        img {
            width: 120Px;
        }
    }
    .line {
        width: 3Px;
        height: 20Px;
        background: linear-gradient(140deg, #011a35 0%, #000000 100%);
    }
    span {
      display: inline-block;
      margin-right: 20Px;
    }
  }
    .introduce-wrap {
        margin-top: 15Px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .page {
        display: flex;
        align-items: flex-end;
        justify-content:flex-end;
    }
  .wrap {
    position: relative;
    width: 1201Px;
    margin: 0 auto;
    .tabs {
      margin-top: 40Px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      .tabs-title {
        display: flex;
        align-items: center;
        font-size: 28Px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #666666;
        line-height: 40Px;
        margin-bottom: 3Px;
        span {
          width: 12Px;
          height: 12Px;
          background: #d8d8d8;
          border-radius: 12Px;
          margin: 0 32Px;
        }
      }
      .tabs-subTitle {
        font-size: 22Px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #999999;
        line-height: 30Px;
        margin-bottom: 37Px;
      }
    }
    .areas {
    .areas-item {
        display: flex;
        align-items: flex-start;
    }
      .title {
        font-size: 28Px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #000000;
        line-height: 40Px;
        margin-right: 20Px;
        flex: 0 0 140Px;
        margin-top:8Px;
      }
      .list {
        display: flex;
        flex-wrap: wrap;
        .item-active {
            background: linear-gradient(180deg, #EEEEEE 0%, #CCCDFF 100%);
            padding: 5Px;
        }
        .item {
            padding: 5Px;
          font-size: 20Px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #999999;
          line-height: 28Px;
          margin: 0 20Px;
          margin: 10Px;
          cursor: pointer;
        }
      }
    
    }
  }
  .banner-wrap {
    position: relative;
    width: 100vw;
    height: auto;
  }
  .banner {
    width: 100vw;
    height: auto;
    margin-bottom: 30Px;
  }
}
</style>
